package com.itheima.exerciseTest.method20_29.method28;
// 仓库类，存放门票
public class Warehouse {
    private volatile int tickets = 100;

    public Warehouse() {
        this(100);
    }

    public Warehouse(int tickets) {
        this.tickets = tickets;
    }

    public int getTickets() {
        return tickets;
    }

    public void setTickets(int tickets) {
        this.tickets = tickets;
    }
}
